import { App } from 'vue'

const modulesFiles: any = import.meta.globEager('./global/**/*index.ts')

export function registerGlobalComponent(app: App<Element>) {
  for (const path in modulesFiles) {
    app.use(modulesFiles[path].default)
  }
}
